﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ProjectSem40701.Util
{
    public class CheckUserLogined
    {
        public bool IsUserLogined()
        {
            bool ok = false;
            try
            {
                 //Lay ra user name dang nhap vao
                string strUser = System.Web.HttpContext.Current.User.Identity.Name;
                if (strUser != String.Empty)//Neu nguoi dung chua dang nhap
                {
                    ok = true;
                }
                return ok;
            }
            catch
            {
                return false;
            }
        }
    }
}
